﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Site.master" AutoEventWireup="true" CodeFile="WIN06_3V.aspx.cs" Inherits="IFRS_WIN06_3V" %>

<%@ Register Assembly="vsm.WebControls" Namespace="vsm.WebControls" TagPrefix="vsm" %>
<%@ Register Assembly="vsm.CustomControl" Namespace="vsm.CustomControl" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
     <link href="../Content/plugins/jquery-ui/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">

        window.SetValueCostCenter = function (Value1, Value2) {
            document.getElementById("<%= hidCostCenter.ClientID %>").value = Value1;
            document.getElementById("<%= txtCostCenter.ClientID %>").value = Value2;
        }

        window.SetValueGLAccount = function (Value1, Value2) {
            document.getElementById("<%= hidGLAccountCode.ClientID %>").value = Value1;
            document.getElementById("<%= txtGLAccountCode.ClientID %>").value = Value1;
        }

        window.SetValueCurrency = function (Value1, Value2) {
            document.getElementById("<%= hidCurrencyCode.ClientID %>").value = Value1;
            document.getElementById("<%= txtCurrencyCode.ClientID %>").value = Value1;
        }

    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="container-custom">
        <div class="table_master">
            <div class="table_detail">
                <asp:PlaceHolder ID="form_control" runat="server">
                <div class="rowinfo">
                    <div class="collabel">
                        <asp:Label ID="lblTransactionDate" runat="server" Text="<%$Resources:ifrsField,DATE_TRANSACTION%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">                        
                        <asp:TextBox ID="txtTransactionDate" SkinID="dateText" runat="server" ></asp:TextBox>                        
                    </div>
                    <div class="collabel">
                        <asp:Label ID="lblBondNo" runat="server" Text="<%$Resources:ifrsField,GSBBond_BondNo%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">
                        <asp:TextBox ID="txtBondNo" runat="server" SkinID="TextBoxWithNoColor"></asp:TextBox>                        
                    </div>
                </div>
                <div class="rowinfo">
                    <div class="collabel">
                        <asp:Label ID="lblCostCenter" runat="server" Text="<%$Resources:ifrsField,COST_CENTER%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">
                        <cc1:TextboxAutoComplete ID="txtCostCenter" runat="server" SkinID="TextBoxWithNoColor"></cc1:TextboxAutoComplete>
                        <asp:Button ID="btnCostCenter" runat="server" Text="..." />                        
                    </div>
                    <div class="collabel">
                        <asp:Label ID="lblGLAccountCode" runat="server" Text="<%$Resources:ifrsField,GL_ACCOUNT%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">
                        <cc1:TextboxAutoComplete ID="txtGLAccountCode" runat="server" SkinID="TextBoxWithNoColor"></cc1:TextboxAutoComplete>
                        <asp:Button ID="btnGLAccountCode" runat="server" Text="..." />                        
                    </div>                    
                </div>
                <div class="rowinfo">
                    <div class="collabel">
                        <asp:Label ID="lblStartDate" runat="server" Text="<%$Resources:ifrsField,GSBBond_StartDate%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">                                              
                        <asp:TextBox ID="txtStartDate" SkinID="dateText" runat="server" ></asp:TextBox>                       
                    </div>
                    <div class="collabel">
                        <asp:Label ID="lblEndDate" runat="server" Text="<%$Resources:ifrsField,GSBBond_EndDate%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">                        
                        <asp:TextBox ID="txtEndDate" SkinID="dateText" runat="server" ></asp:TextBox>                       
                    </div>
                </div>
                <div class="rowinfo">
                    <div class="collabel">
                        <asp:Label ID="lblDayCountMethod" runat="server" Text="<%$Resources:ifrsField,DayCountMethod%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">
                        <asp:DropDownList ID="ddlDayCountMethod" runat="server" SkinID="DropDownListWithNoColor" />
                    </div>
                    <div class="collabel">
                        <asp:Label ID="lblPaymentDate" runat="server" Text="<%$Resources:ifrsField,PaymentDate%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">
                        <asp:DropDownList ID="ddlPaymentDate" runat="server" SkinID="DropDownListWithNoColor" />
                    </div>
                </div>
                <div class="rowinfo">
                    <div class="collabel">
                        <asp:Label ID="lblPaymentFreq" runat="server" Text="<%$Resources:ifrsField,InterestPayFreq%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">                                               
                        <cc1:TextboxNumber ID="txtPaymentFreq" runat="server" SkinID="TextBoxWithNoColor" 
                            MaxLength="10" DigitDecimal="0" TypeTextbox="Currency" />
                    </div>
                    <div class="collabel">
                        <asp:Label ID="lblPaymentFreqTimeBase" runat="server" Text="<%$Resources:ifrsField,InterestPayFreqTimeBase%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">
                        <asp:DropDownList ID="ddlPaymentFreqTimeBase" runat="server" SkinID="DropDownListWithNoColor" />
                    </div>
                </div>                                                     
                <div class="rowinfo">
                    <div class="collabel">
                        <asp:Label ID="lblPaymentCondition" runat="server" Text="<%$Resources:ifrsField,PAYMENT_CONDITION%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">
                        <asp:DropDownList ID="ddlPaymentCondition" runat="server" SkinID="DropDownListWithNoColor" />
                    </div>
                    <div class="collabel">
                        <asp:Label ID="lblCurrencyCode" runat="server" Text="<%$Resources:ifrsField,CURRENCYCODE%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">
                        <cc1:TextboxAutoComplete ID="txtCurrencyCode" runat="server" SkinID="TextBoxWithNoColor"></cc1:TextboxAutoComplete>
                        <asp:Button ID="btnCurrencyCode" runat="server" Text="..." />                       
                    </div>                   
                </div>
                <div class="rowinfo">
                    <div class="collabel">
                        <asp:Label ID="lblBondValue" runat="server" Text="<%$Resources:ifrsField,BondValue%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">                        
                        <cc1:TextboxNumber ID="txtBondValue" runat="server" SkinID="TextBoxWithNoColor" 
                            MaxLength="10" DigitDecimal="2" TypeTextbox="Currency" />
                    </div>
                    <div class="collabel">
                        <asp:Label ID="lblAccountValue" runat="server" Text="<%$Resources:ifrsField,AccountValue%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">                        
                        <cc1:TextboxNumber ID="txtAccountValue" runat="server" SkinID="TextBoxWithNoColor" 
                            MaxLength="10" DigitDecimal="2" TypeTextbox="Currency" />                       
                    </div>
                </div>
                <div class="rowinfo">
                    <div class="collabel">
                        <asp:Label ID="lblEmbeddedOption" runat="server" Text="<%$Resources:ifrsField,EmbeddedOption%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">
                        <asp:DropDownList ID="ddlEmbeddedOption" runat="server" SkinID="DropDownListWithNoColor" />                        
                    </div>
                    <div class="collabel">
                        <asp:Label ID="lblPriceValueUnit" runat="server" Text="<%$Resources:ifrsField,PriceValueUnit%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">                                                                            
                        <asp:DropDownList ID="ddlPriceValueUnit" runat="server" SkinID="DropDownListWithNoColor" />
                    </div>
                </div>

                <div class="rowinfo">
                    <div class="collabel">
                        <asp:Label ID="lblLicenseStatus" runat="server" Text="<%$Resources:ifrsField,LicenseStatus%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">
                        <asp:DropDownList ID="ddlLicenseStatus" runat="server" SkinID="DropDownListWithNoColor" />                       
                    </div>
                    <div class="collabel">
                        <asp:Label ID="lblPriceValue" runat="server" Text="<%$Resources:ifrsField,PriceValue%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">                        
                        <cc1:TextboxNumber ID="txtPriceValue" runat="server" SkinID="TextBoxWithNoColor" 
                            MaxLength="10" DigitDecimal="2" TypeTextbox="Currency" />
                    </div>
                </div>                
                <div class="rowinfo">
                    <div class="collabel">
                    </div>
                    <div class="colinfo">
                    </div>
                    <div class="collabel">
                        <asp:Label ID="lblStatus" runat="server" Text="<%$Resources:ifrsField,LIST_STATUS%>" />&nbsp;:&nbsp;
                    </div>
                    <div class="colinfo">
                        <asp:TextBox ID="txtStatus" runat="server" SkinID="ReadOnlyBox"></asp:TextBox>                        
                    </div>
                </div>
                </asp:PlaceHolder>
            </div>
            <div class="colbtn">                
                <asp:Button ID="btnCANCEL" SkinID="NormalButton" runat="server" 
                    Text="<%$Resources:ifrsButton,CANCEL%>" onclick="btnCANCEL_Click" />
            </div>
        </div>
    </div>    

    <asp:HiddenField ID="hidCostCenter" runat="server" />
    <asp:HiddenField ID="hidGLAccountCode" runat="server" />
    <asp:HiddenField ID="hidCurrencyCode" runat="server" />
      
    <script src="../Content/js/Currency.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.core.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.datepicker.js" type="text/javascript"></script>
    <script src="../Content/plugins/custom.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(function () {
            $(".datepicker").initDatepicker();
        });
    </script>
</asp:Content>